export const rules = {
    companyName: [
        { required: true, message: '请输入公司', trigger: 'blur' },
        { min: 2, max: 8, message: '用户名长度2-8位', trigger: 'blur' },
    ],
    companyCode: [
        { required: true, message: '请输入公司编码', trigger: 'blur' },
        { min: 2, max: 20, message: '公司编码长度2-20位', trigger: 'blur' },
        {pattern:new RegExp(/^[0-9a-zA-Z]{2,}$/,'g'),message:"编码只允许包含字母与数字",trigger: 'blur' }
    ],
    tenantName: [
        { required: true, message: '请输入超级管理员登录名', trigger: 'blur' }
    ],
    tenantPassword: [
        { required: true, message: '请输入超级管理员登录密码', trigger: 'blur' }
    ],
    // companyAddress: [
    //     {
    //         required: true,
    //         message: '请输入公司地址',
    //         trigger: 'change',
    //     },
    // ]
}